package process;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import form.UserHomePageForm;

public class ProcessUserHomePage extends Action {
	
	public ProcessUserHomePage()
	{
		super ();
	}
	
	public ActionForward execute(
	        ActionMapping mapping,
	        ActionForm form,
	        HttpServletRequest request,
	        HttpServletResponse response)
	        throws Exception {

			
		UserHomePageForm x=(UserHomePageForm) form;
		System.out.println("nom Filial " + x.getNomFiliale() +"\nnom Corr "+x.getNomCorrespondant()+
				"\n date Entre " + x.getDateEntreeContact()+" "+ x.getDateEntreeContact2() + "\n date prochain " + x.getDateProchainContact()+ " "+x.getDateProchainContact2()+
				"\n date dernier " + x.getDateDernierContact()+" "+x.getDateDernierContact2() + "\n telephone " + x.getTelephone() +
				"\n poste "+ x.getPoste() + "\n pays "+x.getPays() + "\n motCle " + x.getMotCle()+
				" \n statut "+x.getStatut() +" ***************************************\n");
	        return mapping.findForward("success");
	    }

}
